import {
  Login,
  Notfound,
  Dashboard,
  Users,
  Temp,
  Notice
} from '../views'

import {
  DashboardOutlined,
  TeamOutlined,
  BulbOutlined,
  AlertOutlined
} from '@ant-design/icons'
import Message from '../views/message'

// 不需要特定权限即可访问的路由
export const whiteListRoutes = [
  {
    path: '/login',
    component: Login
  },
  {
    path: '/404',
    component: Notfound
  }
]

// 需要权限才能访问的路由
export const adminRoutes = [
  {
    path: '/admin/dashboard',
    component: Dashboard,
    meta: {
      title: '仪表盘',
      icon: DashboardOutlined
    }
  },
  {
    path: '/admin/users',
    component: Users,
    meta: {
      title: '用户管理',
      icon: TeamOutlined
    }
  },
  {
    path: '/admin/temp',
    component: Temp,
    meta: {
      title: '体温数据',
      icon: BulbOutlined
    }
  },
  {
    path: '/admin/notice',
    component: Notice,
    meta: {
      title: '公告管理',
      icon: AlertOutlined
    }
  },
  {
    path: '/admin/message',
    component: Message,
    meta: {
      title: '消息管理',
      icon: AlertOutlined
    }
  }
]
